package com.ghxxzx.dagl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Objects;

/**
 * 2020年5月28日09:15:18
 */
public class Dalx {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String dalxName;
    private Integer parentId;
    private String code;
    @TableField(exist = false)
    private Integer sfws;//1是文书 0不是文书
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDalxName() {
        return dalxName;
    }

    public Integer getSfws() {
        return sfws;
    }

    public void setSfws(Integer sfws) {
        this.sfws = sfws;
    }

    public void setDalxName(String dalxName) {
        this.dalxName = dalxName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Dalx dalx = (Dalx) o;
        return Objects.equals(id, dalx.id) &&
                Objects.equals(dalxName, dalx.dalxName) &&
                Objects.equals(parentId, dalx.parentId) &&
                Objects.equals(code, dalx.code) &&
                Objects.equals(sfws, dalx.sfws);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, dalxName, parentId, code, sfws);
    }

    @Override
    public String toString() {
        return "Dalx{" +
                "id=" + id +
                ", dalxName='" + dalxName + '\'' +
                ", parentId=" + parentId +
                ", code='" + code + '\'' +
                ", sfws=" + sfws +
                '}';
    }
}
